import sys

result = {}

result["all_count"] = 0

for data in sys.stdin:
    data = data.strip()
    key = data.split("\t")[0]
    value = int(data.split("\t")[1])
    result["all_count"] = result["all_count"] + value

for key, value in result.items():
	sys.stdout.write("%s\t%s\n" % (key, str(value)))